<%-- 
    Document   : contactDetail1
    Created on : Jun 8, 2012, 12:03:36 PM
    Author     : VANANH
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/kapi.js"></script>
        <link rel="stylesheet" type="text/css" href="../css/employee.css"/>
        
    </head>

    <body>
        <f:view>
            <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
            <a4j:form >
                <div class="content_detail">
                    <div class="list_item_user">
                        <div class="item_content" style="display: block">
                            <div class="infomation_form"> 
                                <div class="card_add" style="display:<h:outputText value="#{t025Controller.displayN100}"/>" >
                                    <h:outputLink rendered="#{t025Controller.add}"  value="editAccount.jsp?action=add&id=#{t025Controller.REFID}&page=#{t025Controller.pagereload}&itemid=N100&height=300px&width=500px" styleClass="fancybox">
                                        <img src="../images/add_tab.png" alt="add" title="add" /> <h:outputText value="#{locale.account}"/>
                                    </h:outputLink>


                                </div>
                                <div class="card_add"  style="display:<h:outputText value="#{t025Controller.displayK100}"/>">
                                    <h:outputLink rendered="#{t025Controller.add}"  value="editAccount.jsp?action=add&id=#{t025Controller.REFID}&page=#{t025Controller.pagereload}&itemid=K100&height=300px&width=500px" styleClass="fancybox">
                                        <img src="../images/add_tab.png" alt="add" title="add" /> <h:outputText value="#{locale.account}"/>
                                    </h:outputLink>


                                </div>
                                <div class="item_work_content">
                                    <%--   <table class="emp_table">
                                        <a4j:repeat value="#{t025Controller.listT025All}" var="item">
                                            <tr >
                                                <td colspan="4">&nbsp;</td>

                                                <td >
                                                    <div class="emp_action">
                                                        <div class="row6" style="display:<h:outputText value="#{t025Controller.displayN100}"/>">
                                                            <h:outputLink rendered="#{t025Controller.edit}"  value="editAccount.jsp?action=edit&id=#{item.REFID}&pt025=#{item.PT025}&itemid=N100&page=#{t025Controller.pagereload}&height=300px&width=500px" styleClass="fancybox">
                                                                <img src="../images/edit.png" alt="edit" title="edit"/>
                                                            </h:outputLink>
                                                            <h:outputLink rendered="#{t025Controller.delete}"  value="delete.jsp?id=#{item.REFID}&pn100C=#{item.PT025}&table1=N100&flag=T025&page=#{t025Controller.pagereload}&height=150px&width=300px" styleClass="fancybox">
                                                                <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                                            </h:outputLink>
                                                        </div>
                                                        <div class="row6" style="display:<h:outputText value="#{t025Controller.displayK100}"/>">
                                                            <h:outputLink  rendered="#{t025Controller.edit}"    value="editAccount.jsp?action=edit&id=#{item.REFID}&pt025=#{item.PT025}&itemid=K100&page=#{t025Controller.pagereload}&height=300px&width=500px" styleClass="fancybox">
                                                                <img src="../images/edit.png" alt="edit" title="edit"/>
                                                            </h:outputLink>
                                                            <h:outputLink  rendered="#{t025Controller.delete}"    value="delete.jsp?id=#{item.REFID}&pn100C=#{item.PT025}&table1=K100&flag=T025&page=#{t025Controller.pagereload}&height=150px&width=300px" styleClass="fancybox">
                                                                <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                                            </h:outputLink>
                                                        </div>
                                                    </div>   
                                                </td>
                                            </tr>
                                            <tr>
                                                <td > <span class="emp_lbl1"><h:outputText value="#{locale.bank_acc_num}:" /> </span> </td><td> <span class="emp_info1"><h:outputText value="#{item.TV027}"/> </span></td>
                                                <td > <span class="emp_lbl1"><h:outputText value="#{locale.bank}:" /> </span></td><td><span class="emp_info1"><h:outputText value="#{item.TV029}"/></span></td>
                                                <td>&nbsp;</td>
                                            </tr>
                                            <tr>
                                                
                                                <td > <span class="emp_lbl1"><h:outputText value="#{locale.currency}:" /> </span></td><td><span class="emp_info1"><h:outputText value="#{item.TV028}"/></span></td>
                                                 <td><span class="emp_lbl1"> <h:outputText value="#{locale.address}:" /> </span></td><td><span class="emp_info3"> <h:outputText value="#{item.TV030}" /></span></td>
                                                <td>&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td colspan="5" ><div class="emp_span">&nbsp;</div></td>
                                            </tr>


                                        </a4j:repeat> 
                                    </table>
                                    --%>
                                    <h:inputHidden value="#{t025Controller.pagereload}" id="pagereload"/>
                                                                 <rich:dataTable value="#{t025Controller.listT025All}" var="item"
                                                                                                     rendered="#{!empty t025Controller.listT025All}"
                                                                                                    rows="50"
                                                                                                    onRowMouseOver="this.style.backgroundColor='#DEE1E2'"
                                                                                                    onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
                                                                                                    style=" margin-left:10px;width:98%"
                                                                                                    width="94%" rowKeyVar="index"
                                                                                                    id="table" >

                                                                                         <rich:column style="width:25px;">
                                                                                            <f:facet name="header">
                                                                                                <h:outputText value="#{locale.num}" />
                                                                                            </f:facet>
                                                                                            <div style="width:25px; text-align: center">
                                                                                                <h:outputText value="#{index+1}" />

                                                                                            </div>
                                                                                        </rich:column>
                                                                                        <rich:column style="width:180px;">
                                                                                            <f:facet name="header">
                                                                                                <h:outputText value="#{locale.account_num}" />
                                                                                            </f:facet>
                                                                                            <div style="width:180px; text-align: center">
                                                                                                
                                                                                                   <h:outputText value="#{item.TV027}" />
                                                                                               
                                                                                            </div>
                                                                                        </rich:column>

                                                                                        <rich:column width="180px" >
                                                                                             <f:facet name="header">
                                                                                                <h:outputText value="#{locate.currency}" />
                                                                                            </f:facet>

                                                                                            <div style="width:180px; text-align: center">
                                                                                                <h:outputText value="#{item.TV028}" />
                                                                                            </div>
                                                                                        </rich:column>


                                                                                           <rich:column  width="180px">
                                                                                            <f:facet name="header">
                                                                                                <h:outputText value="#{locale.bank}" />
                                                                                            </f:facet>

                                                                                            <div style="width:180px; text-align: center">
                                                                                                <h:outputText value="#{item.TV029}"><f:convertDateTime pattern="dd/MM/yyyy"/></h:outputText>
                                                                                            </div>
                                                                                        </rich:column>
                                                                                          <rich:column  >
                                                                                            <f:facet name="header">
                                                                                                <h:outputText value="#{locale.address}" />
                                                                                            </f:facet>

                                                                                            <div style="width:atuo; text-align: center">
                                                                                                <h:outputText value="#{item.TV030}" />
                                                                                            </div>
                                                                                        </rich:column >
                                                                                        <rich:column style="width:35px;">
                                                                                            <f:facet name="header">
                                                                                                <h:outputText value="" />
                                                                                            </f:facet>
                                                                                            <div style="width:35px; text-align: center">
                                                                                                <div class="row6" style="display:<h:outputText value="#{t025Controller.displayN100}"/>">
                                                                                                    <h:outputLink rendered="#{t025Controller.edit}"  value="editAccount.jsp?action=edit&id=#{item.REFID}&pt025=#{item.PT025}&itemid=N100&page=#{t025Controller.pagereload}&height=300px&width=500px" styleClass="fancybox">
                                                                                                        <img src="../images/edit.png" alt="edit" title="edit"/>
                                                                                                    </h:outputLink>
                                                                                                    <h:outputLink rendered="#{t025Controller.delete}"  value="delete.jsp?id=#{item.REFID}&pn100C=#{item.PT025}&table1=N100&flag=T025&page=#{t025Controller.pagereload}&height=150px&width=300px" styleClass="fancybox">
                                                                                                        <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                                                                                    </h:outputLink>
                                                                                                </div>
                                                                                                <div class="row6" style="display:<h:outputText value="#{t025Controller.displayK100}"/>">
                                                                                                    <h:outputLink  rendered="#{t025Controller.edit}"    value="editAccount.jsp?action=edit&id=#{item.REFID}&pt025=#{item.PT025}&itemid=K100&page=#{t025Controller.pagereload}&height=300px&width=500px" styleClass="fancybox">
                                                                                                        <img src="../images/edit.png" alt="edit" title="edit"/>
                                                                                                    </h:outputLink>
                                                                                                    <h:outputLink  rendered="#{t025Controller.delete}"    value="delete.jsp?id=#{item.REFID}&pn100C=#{item.PT025}&table1=K100&flag=T025&page=#{t025Controller.pagereload}&height=150px&width=300px" styleClass="fancybox">
                                                                                                        <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                                                                                    </h:outputLink>
                                                                                                </div>

                                                                                            </div>
                                                                                        </rich:column>
                                                               </rich:dataTable>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </a4j:form>
        </f:view>
    </body>
</html>